package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.TbBusiness;

/**
 * 商家Mapper接口
 * 
 * @author ruoyi
 * @date 2023-01-30
 */
public interface TbBusinessMapper 
{
    /**
     * 查询商家
     * 
     * @param businessId 商家主键
     * @return 商家
     */
    public TbBusiness selectTbBusinessByBusinessId(Integer businessId);

    /**
     * 查询商家列表
     * 
     * @param tbBusiness 商家
     * @return 商家集合
     */
    public List<TbBusiness> selectTbBusinessList(TbBusiness tbBusiness);

    /**
     * 新增商家
     * 
     * @param tbBusiness 商家
     * @return 结果
     */
    public int insertTbBusiness(TbBusiness tbBusiness);

    /**
     * 修改商家
     * 
     * @param tbBusiness 商家
     * @return 结果
     */
    public int updateTbBusiness(TbBusiness tbBusiness);

    /**
     * 删除商家
     * 
     * @param businessId 商家主键
     * @return 结果
     */
    public int deleteTbBusinessByBusinessId(Integer businessId);

    /**
     * 批量删除商家
     * 
     * @param businessIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbBusinessByBusinessIds(Integer[] businessIds);
}
